9688640b2f05241d53da5d4c3d896dac4e9657aa,Instantiable/Spline.java,Spline,render,#Tessellator#number#number#number#number#boolean#boolean#,54
Before Change
v5.draw();
}
GL11.glLineWidth(w);
GL11.glEnable(GL11.GL_TEXTURE_2D);
}
private void renderPoints(Tessellator v5, List<DecimalPosition> li, double x, double y, double z) {
After Change
@SideOnly(Side.CLIENT)
public void render(Tessellator v5, double x, double y, double z, int color, boolean glow, boolean closed) {
GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS);
GL11.glDepthMask(false);
List<DecimalPosition> li = this.get(32, closed);
GL11.glEnable(GL11.GL_BLEND);
BlendMode.DEFAULT.apply();
GL11.glDisable(GL11.GL_TEXTURE_2D);
float w = GL11.glGetFloat(GL11.GL_LINE_WIDTH);
v5.startDrawing(GL11.GL_LINE_STRIP);
int a = ReikaColorAPI.getAlpha(color);
int clr = color & 0xffffff;
v5.setColorRGBA_I(clr, a);
this.renderPoints(v5, li, x, y, z, closed);
v5.draw();
if (glow) {
v5.startDrawing(GL11.GL_LINE_STRIP);
v5.setColorRGBA_I(clr, a/4);
GL11.glLineWidth(5);
this.renderPoints(v5, li, x, y, z, closed);
v5.draw();
v5.startDrawing(GL11.GL_LINE_STRIP);
v5.setColorRGBA_I(clr, a/4);
GL11.glLineWidth(10);
this.renderPoints(v5, li, x, y, z, closed);
v5.draw();
}
GL11.glLineWidth(w);
GL11.glPopAttrib();
}
private void renderPoints(Tessellator v5, List<DecimalPosition> li, double x, double y, double z, boolean closed) {